<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div class="a1"></div>
    <script src="./node_modules/vue/dist/vue.js"></script>
    <script src="./node_modules/vuex/dist/vuex.js"></script>
    <script src="./node_modules/vue-router/dist/vue-router.js"></script>
    <script>
        let A = {
            state:{
                num:456
            }
        }
        let B = {
            state:{
                num:456
            }
        }
        let store = new Vuex.Store({
            modules:{
                a:A,
                b:B
            }
        })
        let aa = new Vue({
            el:'.a1'
        })
        console.log(store.state.a.num);
    </script>
</body>
</html>